package pers.fengxu.learnmybatis.db;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class DbUtil {
    private static Connection conn;

    static {
        try {
            Class.forName("com.mysql.cj.jdbc.Driver");
            conn = DriverManager.getConnection("jdbc:mysql://121.5.109.215:3306/windows_tables?useSSL=false&serverTimezone=UTC","root","E4JHGN4dhsfg135WQs");
        } catch (SQLException | ClassNotFoundException e) {
            e.printStackTrace();
        }
    }

    public static Connection getConn() {
        return conn;
    }


}
